// pages/show/show.js
const app = getApp()
Page({
  data: {
    list: [],
    leftList: [],
    rightList: []
  },
  onLoad() {
    this.getList()
  },
  getList() {
    app.get("show/qiang").then(res => {
      this.setData({
        list: res.data
      })
    })
    app.get("show/list").then(res => {
      res.data.forEach((item, index) => {
        if (index % 2 == 0) {
          this.data.leftList.push(item);
          this.setData({
            leftList: this.data.leftList
          })
        } else {
          this.data.rightList.push(item);
          this.setData({
            rightList: this.data.rightList
          })
        }
      })
    })
  }

})